<?php
$config = include_once('../../public/config/config.php');
include_once('../../public/func/db.php');
include_once('../../public/func/upload.func.php');
$post = $_POST;
$res = update($config,'category',$post);
if($res == ''){
	echo '<script>alert("修改成功");window.location.href="./index.php"</script>';
}else{
	echo '<script>alert("修改失败");window.location.href="./index.php"</script>';
}